package com.hrm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hrm.entity.Action;
import com.hrm.entity.Menu;
import com.hrm.entity.Role;
import com.hrm.entity.User;

public interface ExtendsMapper {

	public List<Menu> getMenusByUserId(@Param("userId") long userId);
	public List<Role> getRolesByUserId(@Param("userId") long userId);
	public List<User> getUsersNotRoleId(Map<String, Object> map);
	public int getUsersCountsNotRoleId(@Param("roleId") long roleId);
	public List<User> getUsersByRoleIdMap(Map<String, Object> map);
	public int getUsersCountsByRoleId(@Param("roleId") long roleId);
	public List<Action> getActionsByUserIdAndMenuId(@Param("userId") long userId,@Param("menuId") int menuId);
	public List<Menu> getMenusByRoleId(@Param("roleId") long roleId);
	public List<Action> getActionsByRoleIdAndMenuId(@Param("roleId") long roleId,@Param("menuId") long menuId);
}
